package com.itmuch.dubbo.provider.user;

import com.alibaba.dubbo.config.annotation.Service;
import com.itmuch.dubbo.entity.User;
import com.itmuch.dubbo.facade.UserFacade;

@Service(interfaceClass = UserFacade.class)
public class UserProvider implements UserFacade {

    @Override
    public User findById(Long  id) {
        return User.builder()
                .id(id)
                .username("张三")
                .age(3)
                .build();
    }
}
